package com.zjt.service.product;

import com.zjt.entity.product.SecurityCode;
/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-25
 * Time: AM6:12
 * To change this template use File | Settings | File Templates.
 */
public interface ISecurityCodeService {
    SecurityCode saveSecurityCode(long userId,long productId,String barCode,String securityCode);

    SecurityCode getSecurityCodeByProductId(long userId,long productId);

    /**
     * 通过用户名和条形码取防伪码对像
     * @param userId
     * @param barCode
     * @return
     */
    SecurityCode getSecurityCodeByBarCode(long userId,String barCode);
}
